#ifndef SERVORUDDER_h
#define SERVORUDDER_h
#include "WProgram.h"
#include "/usr/share/arduino/libraries/Servo/Servo.h"
class ServoRudder
{
 public:
  ServoRudder();
  ServoRudder(int pin, int neutre, int course, int direction);
  // Depending on how the boat was constructed, the rotation direction of the servo
  // can be important. We want to send a command ( cmd ) in degrees, so that when it is set to
  // 45 for example, the boat will turn on its right.
  int _direction;
  float _angle;
  int _neutreServo;
  int _courseServo;
  void goTo(float cmd);
 private:
  Servo _serv;
};
#endif
